/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.prashant.sqlduniya.sqlmanager;

import java.util.List;
import org.prashant.sqlduniya.sqlmanager.error.SQLDuniyaResultException;

/**
 *
 * @author prashant
 */
public interface DBConnectionManager {
    public DBConnectionInfo getActiveConnection();
    
    public String ping(DBConnectionInfo info);

    public List<DBConnectionInfo> getConnections();

    public DBNode loadDB(DBConnectionInfo selectedConnection);

    public List<String> loadTables(DBConnectionInfo selectedConnection,String catalog);

    public SQLResult loadTable(TableBean table, int offset, int limit) 
            throws SQLDuniyaResultException;

    public SQLResult loadResult(String query) throws SQLDuniyaResultException;
}
